﻿<%@ Page Language="C#" MasterPageFile="~/views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Longtop.Web.WebSite.Account.ChangePasswordModel>" %>

<asp:Content ID="changePasswordTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Change Password
</asp:Content>
<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Change Password</h2>
    <p>
        Use the form below to change your password.
    </p>
    <p>
        New passwords are required to be a minimum of
        <%= Html.Encode(ViewData["PasswordLength"]) %>
        characters in length.
    </p>
    <%= Html.ValidationSummary(true,"Password change was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       { %>
    <div>
        <fieldset>
            <legend>Account Information</legend>
            <p>
                <%= Html.LabelFor(m => m.OldPassword) %>
                <%= Html.Password("OldPassword") %>
                <%= Html.ValidationMessageFor(m => m.OldPassword) %>
            </p>
            <p>
                <%= Html.LabelFor(m => m.NewPassword) %>
                <%= Html.Password("NewPassword") %>
                <%= Html.ValidationMessageFor(m => m.NewPassword) %>
            </p>
            <p>
                <%= Html.LabelFor(m => m.ConfirmPassword) %>
                <%= Html.Password("ConfirmPassword") %>
                <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
            </p>
            <p>
                <input type="submit" value="Change Password" />
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>
